package com.zjdiepu.www;

import org.apache.commons.lang.StringUtils;
import org.junit.Test;

public class DateConverter {
	@Test
	public void createStrDate() {
		String items = "timeReceiveBank timeReceiveOpencard timeSubsequentInform timeSubsequentReceive dateBank";
		String[] items_ = items.split(" ");
		String p = "yhzdxgDetailResponse";
		String c = "dzLoanMiddleBank";
		for (String item : items_) {
			if (StringUtils.isBlank(item)) {
				continue;
			}
			String methodName = StringUtils.capitalize(item);
			System.out.println(p + ".set" + methodName + "(null == " + c
					+ ".get" + methodName + "() ? \"-\" : sdf.format(" + c
					+ ".get" + methodName + "()));");
		}
	}
}
